#include <Servo.h>
#include <ServoGyro.h>

ServoGyro servo1;

void setup() {
	/* Specify digital pwm capable output pin */
  	pinMode(6,OUTPUT);
  	servo1.attach(6);
  	
	/*set reference voltage to 1.1V, Rowland's servos need 3.3V or 5V reference voltage
		since their potentiometer output is up to 2V */
  	analogReference(INTERNAL);	
  	
	/* Calibrate servo before it can be used */
	servo1.calibrate(5,6, 250, 50);
}

void loop() {
  	int analogPin = 5;
  
	servo1.goToMin(5);
	delay(1500);
	servo1.goToMax(5);
	delay(1500);
} 
